package ooday03.Society;

public class Doctor extends Person {
    String title;
    public Doctor(String name,String address,int age,String title){
        super(name,address,age);
        this.title=title;
    }
    void cut(){
        System.out.println(name+" is now operating");
    };
    void sayHi(){
        System.out.println("Hi everyone, my name is: "+name+", I'm "+age+" years old, I live in "+address);
        System.out.println(", my title is "+title);
        System.out.println();
    }
}
